package systemmanagement;

import java.util.HashMap;
import java.util.Map;

public class UserManagement {
    private Map<String, String> userPermissions;

    public UserManagement() {
        userPermissions = new HashMap<>();
    }

    public void addUser(String username, String permission) {
        userPermissions.put(username, permission);
        System.out.println("用户 " + username + " 已添加，权限为: " + permission);
    }

    public String getUserPermission(String username) {
        return userPermissions.get(username);
    }
}